package com.simon.app.october.modules.sys.dao;

import com.simon.app.october.modules.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;

@Mapper
public interface SysUserDao {
    public SysUserEntity        findById(Long id);
    public SysUserEntity        findByUsername(String username);
    public SysUserEntity        findByToken(String token);
    public List<Long>           getAllMenuId(Long userId);
    public List<SysUserEntity>  getPage(Map<String, Object> map);
    public int                  getTotal(Map<String, Object> map);
    public void                 insert(SysUserEntity userEntity);
    public void                 updateById(SysUserEntity userEntity);
    public void                 deleteByIds(List<Long> userIds);
    public List<String>         getUserPermissions(long userId);
}
